﻿using Fantasy;
using Fantasy.Async;
using Fantasy.Network.Interface;

namespace Entity.Handler.CustomRouteHandler;

public class C2Chat_WxyHelloReqHandler : RouteRPC<ChatEntity,C2Chat_WxyHelloReq,Chat2C_WxyHelloRsp>
{
    protected override async FTask Run(ChatEntity entity, C2Chat_WxyHelloReq request, Chat2C_WxyHelloRsp response, Action reply)
    {
        Log.Debug($"收到客户端的消息：{request.msg}");
        response.msg = "你好啊unity客户端，我也想你了";
        await FTask.CompletedTask;
    }
}